Page({
  data: {
    /** 公告列表数据 */
    announceList: []
  },
  async onShow() {
    this.getAnnounceList()

  },
  /** 获取公告列表 */
  async getAnnounceList() {
    let res = await wx.http({
      url: '/announcement'
    })
    // console.log(res);
    this.setData({
      announceList: res.data
    })
  }
})
